﻿using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using System.Text;

using DQYT.HTDZ.BLL;
using DQYT.HTDZ.Model;

namespace DQYT.HTDZ.Web.FUJIAN
{
    public partial class Show : Page
    {
        public string strid = "";
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!Page.IsPostBack)
            {
                if (Request.Params["id"] != null && Request.Params["id"].Trim() != "")
                {
                    strid = Request.Params["id"];
                    decimal ID = (Convert.ToDecimal(strid));
                    ShowInfo(ID);
                }
            }
        }

        private void ShowInfo(decimal ID)
        {
            FUJIANBLL bll = new FUJIANBLL();
            FUJIANModel model = bll.GetModel(ID);
            this.lblID.Text = model.ID.ToString();
            this.lblATTACHID.Text = model.ATTACHID.ToString();
            this.lblOBJECTID.Text = model.OBJECTID.ToString();
            this.lblOBJECTTYPE.Text = model.OBJECTTYPE;
            this.lblATTACHNAME.Text = model.ATTACHNAME;
            this.lblATTACHURL.Text = model.ATTACHURL;
            this.lblATTACHTYPE.Text = model.ATTACHTYPE;
            this.lblATTACHBYTES.Text = model.ATTACHBYTES.ToString();
            this.lblATTACHSIZE.Text = model.ATTACHSIZE.ToString();
            this.lblUPLOADTIME.Text = model.UPLOADTIME.ToString();

        }


    }
}
